Complementary Reimagined - Better Than Ocelots patch
====================================================

WHAT THIS IS

This is your own Complementary Reimagined pack with two files changed, so that the red
charge bar on the Better Than Ocelots Generator (and the powered Wireless Transmitter) glows the way a command block's face or a
lit furnace's grate glows under this pack.

Install it exactly like the original: drop the zip in .minecraft/shaderpacks and select it.
It replaces the unpatched copy - do not run both.

WHAT CHANGED (two files, nothing else)

1. shaders/block.properties
   Adds two lines.

   block.10461 lists the Generator's fifteen RUNNING blockstates (charge=1..15,
   paused=false) - the red charge bar.

   block.10462 lists the fifteen PAUSED blockstates (charge=1..15, paused=true) - the
   yellow indicator the block shows while a redstone signal is holding it.

   The empty state (charge=0) is in neither: an empty generator is not "on" in either
   sense, and its front carries the same dark red pixels the fade ends on, so including
   it would make a dead generator glow.

   Running and paused get SEPARATE IDs rather than sharing one. It keeps the yellow test
   off the running fronts (whose copper frame carries plenty of orange) and the red test
   off the paused front, so neither can ever catch the other's artwork.

   Both lines are written as fifteen space-separated entries rather than one entry with a
   comma-separated property list, because that is the form this file already uses for
   cauldron:level and chorus_flower:age.

2. shaders/lib/materials/materialHandling/terrainIPBR.glsl
   Adds a branch for material 10461 inside the leaf that already handles IDs 10460-10463.
   It re-reads the texture at LOD 0 (so mipmap blur cannot smear the bar's colour into the
   casing beside it - the same guard the command block case uses), then raises emission
   only on fragments where green and blue are near zero and red is above 0.22.

   That test isolates the twelve bar pixels exactly. Everything else on the block - copper
   frame, grey casing, orange battery - carries real green and blue. The 0.22 floor is
   there because the art has two pixels of (50,0,0) under the battery that are NOT part of
   the bar and never fade; the bar's darkest stage is (61,0,0) = 0.239 and those are 0.196,
   so 0.22 splits them with about 5/255 of margin either side.

   Emission scales with that pixel's own red, so the glow dims as the battery drains
   instead of sitting at a constant glare.

   The 10462 branch does the same for the paused front's yellow indicator, testing
   r > 0.90 && 0.75 < g < 0.90 && b < 0.06. That indicator occupies exactly the same
   twelve texels the red bar does - it is the same lamp in a different colour - and ten
   of those texels are FFD800 while two are FAD300, so both shades have to pass or the
   bar shows a two-pixel hole. The bounds are set by the ORANGE battery drawn just below
   it: DA8B00 is the nearest excluded colour and it misses the green floor by 52/255.
   Pure red cannot reach this branch either, having no green at all.

   Measured across every Generator texture before shipping: the red test matches exactly
   the 12 bar texels on all fifteen running fronts and 0 texels on the side, back, top and
   bottom; the yellow test matches exactly 12 on the paused front and 0 everywhere else;
   and no texel anywhere satisfies both.

WIRELESS TRANSMITTER (added with mod v413)

3. shaders/block.properties
   block.10463 = better-than-ocelots:wireless_transmitter:powered=true. The unpowered rod is
   not listed, so it never glows.

4. shaders/lib/materials/materialHandling/terrainIPBR.glsl
   A 10463 branch next to the Generator's two, re-reading the texture at LOD 0 like they do.
   It lights three kinds of texel on wireless_transmitter_on.png, by colour:
     crystal  - the amethyst inside the tip (strong red AND strong blue): full glow
     redstone - the pure-red pixels at the base of the pole: full glow
     halo     - the reddened copper row just above the redstone: about a third, as falloff
   Measured on the texture: 12 crystal, 4 redstone and 2 halo texels match; the copper pole,
   the teal sculk frame on the tip's corners and the teal collar match nothing.
   If you repaint the rod, keep the crystal pinkish-purple/cream and the redstone pure red, or
   adjust the tests in that branch.

IF YOU UPDATE COMPLEMENTARY

These changes will be gone. They are small and self-contained: search either file for
"10461", "10462" and "10463" and re-apply.
